package com.example.emos.wx.user.db.dao;

import com.example.emos.wx.user.model.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

@Mapper
public interface TbUserDao {
     boolean haveRootUser();
     int insert(HashMap param);
     Integer searchIdByOpenId(String openId);
     Set<String> searchUserPermissions(int userId);
     TbUser searchById(int userId);
     HashMap searchNameAndDept(int userId);
     String searchUserHiredate(int useerId);
     HashMap searchUserSummary(int userId);

    ArrayList<HashMap> searchUserGroupByDept(String keyword);

     ArrayList<HashMap> searchMembers(List param);
     HashMap searchUserInfo(int userId);
    int searchDeptManagerId(int id);
    int searchGmId();
    String searchMemberEmail(int id);

    List<HashMap> selectUserPhotoAndName(List param);

    int searchUserIdByEmail(String email);

    int updateUserInfo(HashMap param);

    int deleteUserById(Integer id);

    ArrayList<HashMap> searchUserContactList();
}